import { request } from "umi";
import { BasePageParams } from "./api";




export const getKnowledgeList =(params:BasePageParams={page:1,pageSize:2})=>request('/api/knowledge',{
    params
})


export const  del_status =(id:string) =>request(`/api/knowledge/${id}`,{
    method:'DELETE'
})
//
export const set_status =(id:string,status:string)=>request(`/api/knowledge/${id}`,{
    method:"PATCH",
    data:{status:status}
})